package interfejs;

import java.awt.BorderLayout;
import java.awt.Dimension;

import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import viewModel.CheckTableModel;


public class CheckPanel extends JPanel {

  JTable checkTable;
	public CheckPanel(){
		 super(new BorderLayout());
			checkTable = new JTable(new CheckTableModel());		
			checkTable.setPreferredScrollableViewportSize(new Dimension(checkTable.getWidth(), 100));
			checkTable.setFillsViewportHeight(true);
			
			JScrollPane scrollPane = new JScrollPane(checkTable);
			add(scrollPane, BorderLayout.CENTER);		
			}   
 
}
